//
//  FamilyCell.m
//  UHealth
//
//  Created by gjtxz on 15/2/5.
//  Copyright (c) 2015年 gjtx. All rights reserved.
//

#import "FamilyCell.h"

@implementation FamilyCell

- (void)awakeFromNib {
    // Initialization code
    [self setBackgroundColor:[UIColor clearColor]];
    self.Img.layer.masksToBounds = YES;
    [self.Img.layer setCornerRadius:CGRectGetHeight(self.Img.bounds) / 2];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

//- (void)setData:(NSDictionary *)dataDict
//{
//    NSString *imgStr            = dataDict[@"img"];
//    NSString *titleStr          = dataDict[@"title"];
//    NSString *right             = dataDict[@"right"];
//    
//    if([imgStr isEqualToString:@"我的家人"]){
//        self.Img.image          = [UIImage imageNamed:@"我的家人"];
//    }else {
//        self.Img.image          = [UIImage imageWithContentsOfFile:imgStr];
//    }
//    self.Title.text             = titleStr;
//    self.Title.textColor        = [UIColor whiteColor];
//    
//    [self.rightBtn setTitle:nil forState:UIControlStateNormal];
//    self.rightBtn.enabled = YES;
//    UIImage *img ;
//    if ([right isEqualToString:@"0"]) {//0 无
//        img = [UIImage imageNamed:@""];
//        self.rightBtn.enabled = NO;
//    }else if([right isEqualToString:@"1"]){//1编辑
//        
//        img = [UIImage imageNamed:@"edit"];
//    }else if([right isEqualToString:@"2"]){//2切换 去选择默认
//        
//        img = [UIImage imageNamed:@""];
//        [self.rightBtn setTitle:@"切换家人" forState:UIControlStateNormal];
//    }else if([right isEqualToString:@"3"]){//3添加用户
//        
//        img = [UIImage imageNamed:@"添加"];
//        [self.Title setTextColor:[UIColor grayColor]];
//    }else{//无
//        img = [UIImage imageNamed:@""];
//    }
//    [self.rightBtn setImage:img forState:UIControlStateNormal];
//}


@end
